package com.zengqingfa.shardingjdbc.demo.entity;

import com.alibaba.fastjson.JSON;
import lombok.Data;

@Data
public class DetailBill {

    private Long id;

    /**
     * 单据明细编码
     */
    private String detailBillCode;


    /**
     * 来源单据明细编码
     */
    private String sourceDetailCode;


    /**
     * 主单id
     */
    private Long billId;


    /**
     * 事务id
     */
    private String transactionId;


    /**
     * 租户编码
     */
    private String tenantCode;


    public DetailBill() {
    }

    @Override
    public String toString() {
        return JSON.toJSONStringWithDateFormat(this, JSON.DEFFAULT_DATE_FORMAT);
    }


}
